package com.fuluwa.infra.event;

import org.springframework.context.ApplicationEvent;

public class GlobalEvent extends ApplicationEvent
{
  private EventType type;

  public GlobalEvent(Object source, EventType type)
  {
    super(source);
    this.type = type;
  }

  public EventType getType() {
    return this.type;
  }

  public static enum EventType
  {
    REGISTED, PRODUCT_ONLINE, PRODUCT_SOLD;
  }
}